'use strict';

function choose_common_elements(collection_a, collection_b) {
  let collection=[];
  for(let i=0;i<collection_a.length;i++)
    {
      for(let j=0;j<collection_b.length;j++)
        {
          if(collection_a[i]==collection_b[j])
            collection.push(collection_a[i]);
        }
    }
  return collection;
}

module.exports = choose_common_elements;
